#include <QCoreApplication>
#include <iostream>
using namespace  std;


void showArr(int *p,int l ){
    for(int index = 0;index < l;index++){
        cout << p[index]<<"\t";
    }
    cout << endl;
}
int main(int argc, char *argv[])
{
    int arr[]={7,9,6,2,5,1,0,3,8,4};
    int len = sizeof(arr) / sizeof(arr[0]);
    cout << len<<endl;
    showArr(arr, len);
    return 0;
}




void swap(int a, int b){
    int temp = a;
    a =b ;
    b = temp;
    cout<< a << "\t" << b <<endl;
}
void swap1(int *a, int * b){
    int temp = *a;
    *a =*b ;
    *b = temp;
    cout<< a << "\t" << b <<endl;
}




int main1(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    int x =1;
    int y =2;
    swap1(&x,&y);
    cout << "aaa" <<endl;
    cout<< x << "\t" << y <<endl;
    return a.exec();
}
